package com.snail.poker.web.interceptor;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 查询条件命令数据收集拦截器
 * 
 * @author Snail
 * 
 */
public class CommandInterceptor extends AbstractInterceptor {
	private final static Log log = LogFactory.getLog(CommandInterceptor.class);

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		// TODO Auto-generated method stub

		Map<String, Object> param = invocation.getInvocationContext()
				.getParameters();
		for (Map.Entry<String, Object> map : param.entrySet()) {
			String paramName = map.getKey();
			if (paramName.startsWith("Q_")) {
				String[] values = (String[]) map.getValue();
				for (String val : values) {
				}
			}
		}

		return null;
	}

}
